package frame.options.sdn;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;

import frame.SimulatorFrame;

@SuppressWarnings("serial")
public class SdnMenu extends JMenu
{
	private OpenSdnMenuItem openSdnMenuItem;
	public OpenSdnMenuItem getOpenSdnNetworksMenuItem(){ return openSdnMenuItem; }
	public void setOpenSdnNetworksMenuItem( OpenSdnMenuItem openSdnMenuItem ){ this.openSdnMenuItem = openSdnMenuItem; }

	private CreateSdnMenuItem createSdnMenuItem;
	public CreateSdnMenuItem getCreateSdnNetworksMenuItem(){ return createSdnMenuItem; }
	public void setCreateSdnNetworksMenuItem( CreateSdnMenuItem createSdnMenuItem ){ this.createSdnMenuItem = createSdnMenuItem; }
	
	private SaveSdnMenuItem saveSdnMenuItem;
	public SaveSdnMenuItem getSaveSdnNetworksMenuItem(){ return saveSdnMenuItem; }
	public void setSaveSdnNetworksMenuItem( SaveSdnMenuItem saveSdnMenuItem ){ this.saveSdnMenuItem = saveSdnMenuItem; }

	public SdnMenu( SimulatorFrame simulatorFrame )
	{
		this.setOpenSdnNetworksMenuItem( new OpenSdnMenuItem( simulatorFrame ) );
		this.setCreateSdnNetworksMenuItem( new CreateSdnMenuItem( simulatorFrame ) );
		this.setSaveSdnNetworksMenuItem( new SaveSdnMenuItem( simulatorFrame ) );
		
		this.setText( "SDN Networks" );
		this.setMnemonic( KeyEvent.VK_P );
		this.add( this.getOpenSdnNetworksMenuItem() );
		this.add( this.getCreateSdnNetworksMenuItem() );
		this.add( this.getSaveSdnNetworksMenuItem() );
		
		
	}
	
}
